<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<%@page import="com.yaodian100.ec.member.service.AddessService"%>
<%@page import="org.springframework.web.context.support.WebApplicationContextUtils"%>
<%@page import="java.util.Map"%>
<%@page import="com.yaodian100.core.menu.entity.Option"%>
<%
AddessService addressService = null;
try{
	addressService = (AddessService)WebApplicationContextUtils.getRequiredWebApplicationContext(getServletContext()).getBean("addressService");
	addressService.setFreight();
	Map freightMap = addressService.getFreightMap();
	Option ship1 = (Option) freightMap.get("1");
	Option ship2 = (Option) freightMap.get("2");
	Option ship3 = (Option) freightMap.get("3");
	Option ship4 = (Option) freightMap.get("4");
	Option ship5 = (Option) freightMap.get("5");
	Option ship6 = (Option) freightMap.get("6");
	Option shipCod = (Option) freightMap.get("COD");
	out.println("一区逾每KG加收金额：" + ship1.getMemo2() + "元,手续费：" + ship1.getMemo1() + "元<br/>");
	out.println("二区逾每KG加收金额："+ship2.getMemo2() + "元,手续费：" + ship2.getMemo1() + "元<br/>");
	out.println("三区逾每KG加收金额："+ship3.getMemo2() + "元,手续费：" + ship3.getMemo1() + "元<br/>");
	out.println("四区逾每KG加收金额："+ship4.getMemo2() + "元,手续费：" + ship4.getMemo1() + "元<br/>");
	out.println("五区逾每KG加收金额："+ ship5.getMemo2() + "元,手续费：" + ship5.getMemo1() + "元<br/>");
	out.println("六区逾每KG加收金额："+ ship6.getMemo2() + "元,手续费：" + ship6.getMemo1() + "元<br/>");
	out.println("COD逾每KG加收金额：" + shipCod.getMemo2() + "元,手续费："+ shipCod.getMemo1()+"元<br/>");	
}catch(Exception e){
	out.println("init error:::" + e.toString());
}finally{
	out.println("init done.");
}
%>